﻿using LuckyShell.ShellValues;

namespace LuckyShell.ShellOrders;

public class AppOrder(string order) : ShellOrder
{
    private string Order { get; set; } = order;

    public void Run(ref VariateManager manager)
    {
        var i = new InterpolateStringValue(Order);
        var o = i.GetValue(ref manager);
        if (o is string s) manager.Order(s);
    }
}